//
//  AdViewController.h
//  admobandiad
//
//  Created by apple on 11-4-11.
//  Copyright 2011 IFunSoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <iAd/iAd.h>

#import "GADBannerView.h"
#import "GADInterstitialDelegate.h"



#define MY_ADMOB_AD @"a14f816b4ce6bb0"       //super fish ,from admob


@protocol AdViewControllerDelegate;

@interface AdViewController : UIViewController <ADBannerViewDelegate, GADBannerViewDelegate>
{
	id <AdViewControllerDelegate>	delegate;
	
	//ADBannerView Transformations:
	CGAffineTransform transformLast, transformLeft, transformRight;
	
	//Banners:
	id								adBannerView;
	GADBannerView*						adMobAd;
}

@property (nonatomic, assign) id <AdViewControllerDelegate> delegate;

- (id)initWithMasterView:(UIView*)newMasterView;
- (void)rotateBannerView:(UIDeviceOrientation)toDeviceOrientation;
- (void)updateBannerViewOrientation;

@end

@protocol AdViewControllerDelegate

- (void)adController:(AdViewController*)controller didLoadiAd:(id)iadBanner;
- (void)adController:(AdViewController*)controller didFailedToRecieveiAd:(id)iadBanner;

- (void)adController:(AdViewController*)controller didLoadAdMobAd:(GADBannerView*)adMobBanner;
- (void)adController:(AdViewController*)controller didFailedToRecieveAdMobAd:(GADBannerView*)adMobBanner;

@end

